*{
    box-sizing: border-box;
}

#nav{
    display: flex;
    /* border: 2px solid red; */

    list-style-type: none ;
    background-color: gray;
    color: white;
    margin: 0;
    padding: 10px;
    font-size: 35px;
    position: sticky;
    top:0;
   z-index: 1;
}


li a{
    margin: 0 30px;
    padding: 10px ;
    text-align: center;
     text-decoration:none ;

}

li a:hover{
    color:white;
    background-color: black;
}

li a:visited{
    color: white;
}



#current{
    background-color: black;
    color: white;
}

.titlecontainer{
    background-image: url("../images/consoles.jpg");
    /* background-color: black; */
    background-repeat: no-repeat;
    background-size: cover;
    height: 750px;
    color: white;
    text-align: center;
   border: 2px solid black;
   width: 100%;
    /* opacity: 0.5; */
 }

 .title{
    margin-top: 220px;
    padding: 40px;
    font-size: 100px;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}


#gallery{
    display: flex;
    list-style-type: none ;
    width: 100%;
    /* border: 2px solid red; */
    flex-wrap: wrap;
    justify-content: space-evenly;
   
}

#gallery  img{
    width:400px;
    /* height: 600px; */
}



li{
    position: relative;
    /* border: 2px solid blue; */
    
}


.headers{
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 60px;
}

#gallery li{
    text-decoration:none ;
    margin: 10px;
}

.overlaytop{
    position: absolute;
    color: white;
    background: rgba(0, 0, 0, 0.5); /* Black see-through */
    transition: .5s ease;
    opacity:0;
    text-align: center;
    padding: 30px;
    top: 0;
    width: 100%;
    text-align: center;
   
}

.overlaybottom{
    position: absolute;
    color: white;
    background: rgba(0, 0, 0, 0.5); /* Black see-through */
    transition: .5s ease;
    opacity:0;
    text-align: center;
    padding: 30px;
    bottom: 0;
    width: 100%;
    text-align: center;
   
}



li:hover .overlaytop, li:hover .overlaybottom{
    opacity: 1;
  }
 